package edu.fpa.day0803;

import java.io.File;
import java.io.IOException;

public class TestFile {
    public static void main(String []args)throws IOException {
//        File file=new File("e:/a.txt");
//        System.out.println(file);
//        boolean a1=file.renameTo(new File("e:/bb.com"));
//        System.out.println(a1);
//
////        System.out.println(file.renameTo(new File("e:/bb.txt")));
//
//        System.out.println(System.getProperty("user.dir"));

        File file1=new File("e:/gg.txt");
        System.out.println(file1.createNewFile());

        System.out.println(file1.renameTo(new File("e:/tt.txt")));

        System.out.println(file1.delete());
    }
}
